package com.cy.demo1.service.ex;

/**
 * 业务层异常的基类throws：new ServiceException
 */
//RuntimeException运行时异常
public class ServiceException extends RuntimeException{
    public ServiceException() {
        super();
    }
//信息抛出 常用
    public ServiceException(String message) {
        super(message);
    }
//抛出信息和信息对象 常用
    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    protected ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
